<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPHINXsys/src/shared/meshes/base_mesh.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3dc1dabd28ba78e072d14d3fcfc90454.html">SPHINXsys</a></li><li class="navelem"><a class="el" href="dir_48ea983704c43b6d88c1fa3f4d09e369.html">src</a></li><li class="navelem"><a class="el" href="dir_0a0d9ef1793521534f0094f317758287.html">shared</a></li><li class="navelem"><a class="el" href="dir_61d72b4dd46479d55af927dc89c7a78c.html">meshes</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">base_mesh.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="base__mesh_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* -------------------------------------------------------------------------*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">*                               SPHinXsys                                   *</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* --------------------------------------------------------------------------*</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">* SPHinXsys (pronunciation: s&#39;finksis) is an acronym from Smoothed Particle *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">* Hydrodynamics for industrial compleX systems. It provides C++ APIs for    *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">* physical accurate simulation and aims to model coupled industrial dynamic *</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* systems including fluid, solid, multi-body dynamics and beyond with SPH   *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">* (smoothed particle hydrodynamics), a meshless computational method using  *</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">* particle discretization.                                                  *</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">* SPHinXsys is partially funded by German Research Foundation               *</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">* (Deutsche Forschungsgemeinschaft) DFG HU1527/6-1, HU1527/10-1             *</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">* and HU1527/12-1.                                                          *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">* Portions copyright (c) 2017-2020 Technical University of Munich and       *</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">* the authors&#39; affiliations.                                                *</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">* Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); you may   *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">* not use this file except in compliance with the License. You may obtain a *</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">* copy of the License at http://www.apache.org/licenses/LICENSE-2.0.        *</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">*                                                                           *</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">* --------------------------------------------------------------------------*/</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;base_data_package.h&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="sph__data__conainers_8h.html">sph_data_conainers.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;my_memory_pool.h&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &lt;fstream&gt;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &lt;algorithm&gt;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#include &lt;functional&gt;</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd_1_1placeholders.html">std::placeholders</a>;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keyword">using namespace </span><a class="code" href="namespacestd.html">std</a>;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespace_s_p_h.html">SPH</a></div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="namespace_s_p_h.html#ac11be758d779fa508c860fc76ea76c1d">   53</a></span>&#160;    <span class="keyword">typedef</span> std::function&lt;void(Vecu, Real)&gt; <a class="code" href="namespace_s_p_h.html#ac11be758d779fa508c860fc76ea76c1d">MeshFunctor</a>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> ReturnType, <span class="keyword">class</span> DataPackageType&gt;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">   56</a></span>&#160;    <span class="keyword">using</span> <a class="code" href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">PackageFunctor</a> = std::function&lt;ReturnType(DataPackageType*, Real)&gt;;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="namespace_s_p_h.html#aefc4743c0431714953fbf6b4850d4cae">MeshIterator</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> index_begin, <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> index_end, <a class="code" href="namespace_s_p_h.html#ac11be758d779fa508c860fc76ea76c1d">MeshFunctor</a>&amp; mesh_functor, Real dt = 0.0);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="namespace_s_p_h.html#aae6b33f2feaab1a5a06a45ec57f0ee8a">MeshIterator_parallel</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> index_begin, <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> index_end, <a class="code" href="namespace_s_p_h.html#ac11be758d779fa508c860fc76ea76c1d">MeshFunctor</a>&amp; mesh_functor, Real dt = 0.0);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> DataPackageType&gt;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="namespace_s_p_h.html#aa4ff282c8b1c3e623e04440adf39f68a">   63</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="namespace_s_p_h.html#aa4ff282c8b1c3e623e04440adf39f68a">PackageIterator</a>(<a class="code" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector&lt;DataPackageType*&gt;</a> inner_data_pkgs,</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <a class="code" href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">PackageFunctor&lt;void, DataPackageType&gt;</a>&amp; pkg_functor, Real dt = 0.0)</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    {</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i != inner_data_pkgs.size(); ++i)</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            pkg_functor(inner_data_pkgs[i], dt);</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    };</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> DataPackageType&gt;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="namespace_s_p_h.html#a47bfdfc81e94165cf7377baf3314020b">   72</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="namespace_s_p_h.html#a47bfdfc81e94165cf7377baf3314020b">PackageIterator_parallel</a>(<a class="code" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector&lt;DataPackageType*&gt;</a> inner_data_pkgs,</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        <a class="code" href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">PackageFunctor&lt;void, DataPackageType&gt;</a>&amp; pkg_functor, Real dt = 0.0)</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    {</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        parallel_for(blocked_range&lt;size_t&gt;(0, inner_data_pkgs.size()),</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;            [&amp;](<span class="keyword">const</span> blocked_range&lt;size_t&gt;&amp; r) {</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = r.begin(); i != r.end(); ++i) {</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                    pkg_functor(inner_data_pkgs[i], dt);</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;                }</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            }, ap);</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    };</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> ReturnType, <span class="keyword">typename</span> ReduceOperation, <span class="keyword">class</span> DataPackageType&gt;</div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="namespace_s_p_h.html#af6044dbd32a657819874af06950bf725">   84</a></span>&#160;    ReturnType <a class="code" href="namespace_s_p_h.html#af6044dbd32a657819874af06950bf725">ReducePackageIterator</a>(<a class="code" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector&lt;DataPackageType*&gt;</a> inner_data_pkgs, ReturnType temp,</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <a class="code" href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">PackageFunctor&lt;ReturnType, DataPackageType&gt;</a>&amp; reduce_pkg_functor, ReduceOperation&amp; reduce_operation, Real dt = 0.0)</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    {</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i &lt; inner_data_pkgs.size(); ++i)</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;        {</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;            temp = reduce_operation(temp, reduce_functor(inner_data_pkgs[i], dt));</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        <span class="keywordflow">return</span> temp;</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    };</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keyword">template</span> &lt;<span class="keyword">class</span> ReturnType, <span class="keyword">typename</span> ReduceOperation, <span class="keyword">class</span> DataPackageType&gt;</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="namespace_s_p_h.html#a10c87e35a347ecf49ccf630565aab1e2">   95</a></span>&#160;    ReturnType <a class="code" href="namespace_s_p_h.html#a10c87e35a347ecf49ccf630565aab1e2">ReducePackageIterator_parallel</a>(<a class="code" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector&lt;DataPackageType*&gt;</a> inner_data_pkgs, ReturnType temp,</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <a class="code" href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">PackageFunctor&lt;ReturnType, DataPackageType&gt;</a>&amp; reduce_pkg_functor, ReduceOperation&amp; reduce_operation, Real dt = 0.0) {</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;        <span class="keywordflow">return</span> parallel_reduce(blocked_range&lt;size_t&gt;(0, inner_data_pkgs.size()),</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            temp, [&amp;](<span class="keyword">const</span> blocked_range&lt;size_t&gt;&amp; r, ReturnType temp0)-&gt;ReturnType</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            {</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;                <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = r.begin(); i != r.end(); ++i) {</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;                    temp0 = reduce_operation(temp, reduce_functor(inner_data_pkgs[i], dt));</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;                }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;                <span class="keywordflow">return</span> temp0;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;            },</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;            [&amp;](ReturnType x, ReturnType y)-&gt;ReturnType {</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;                <span class="keywordflow">return</span> reduce_operation(x, y);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            }</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;            );</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    };</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html">  115</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_base_mesh.html">BaseMesh</a></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    {</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#ac8559448b24066e06263bff0aa5ba75b">  118</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_base_mesh.html#ac8559448b24066e06263bff0aa5ba75b">mesh_lower_bound_</a>;         </div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#af6c2e186b771c3573486cdcbaa362b25">  119</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_base_mesh.html#af6c2e186b771c3573486cdcbaa362b25">grid_spacing_</a>;             </div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#a5e1e27e30924c3390d8cdd20dba606fd">  120</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_base_mesh.html#a5e1e27e30924c3390d8cdd20dba606fd">number_of_grid_points_</a>;    </div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#a24a968bc706af8c7fbdc427ca7ed156b">  124</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_base_mesh.html#a24a968bc706af8c7fbdc427ca7ed156b">BaseMesh</a>() : mesh_lower_bound_(0),</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            grid_spacing_(1.0), number_of_grid_points_(1) {};</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#a06e00f3689429e2b174e3da6a7021900">  127</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_base_mesh.html#a06e00f3689429e2b174e3da6a7021900">BaseMesh</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points </div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        )</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            : mesh_lower_bound_(0), grid_spacing_(1.0),</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            number_of_grid_points_(number_of_grid_points) {};</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_base_mesh.html">BaseMesh</a>() {};</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#a00a3bee5412ec539c8cd068d504cd45b">  134</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_base_mesh.html#a00a3bee5412ec539c8cd068d504cd45b">MeshLowerBound</a>() { <span class="keywordflow">return</span> mesh_lower_bound_; };</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#a075244782af1e6dccff264c569e29dab">  136</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_base_mesh.html#a075244782af1e6dccff264c569e29dab">GridSpacing</a>() { <span class="keywordflow">return</span> grid_spacing_; };</div><div class="line"><a name="l00138"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh.html#ad6f44b0d0886d0fd8cbbbded978fca8c">  138</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_base_mesh.html#ad6f44b0d0886d0fd8cbbbded978fca8c">NumberOfGridPoints</a>() { <span class="keywordflow">return</span> number_of_grid_points_; };</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> GridIndexFromPosition(Vecd&amp; position);</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        Vecd GridPositionFromIndex(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> grid_index);</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> transfer1DtoMeshIndex(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> mesh_size, <span class="keywordtype">size_t</span> i);</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        <span class="keywordtype">size_t</span> transferMeshIndexTo1D(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> mesh_size, <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> mesh_index);</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> allocateMeshDataMatrix() = 0;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> deleteMeshDataMatrix() = 0;</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    };</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html">  183</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_mesh.html">BaseMesh</a></div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    {</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00187"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a0220a9cfe258f8fb9ccdee36ba27193a">  187</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_mesh.html#a0220a9cfe258f8fb9ccdee36ba27193a">buffer_size_</a>;    </div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a90b8a7819fe4eb22f4717dbf09c3b325">  188</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_mesh.html#a90b8a7819fe4eb22f4717dbf09c3b325">cell_spacing_</a>;     </div><div class="line"><a name="l00189"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a8996ae22420ea203e1206c2c7466d716">  189</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_mesh.html#a8996ae22420ea203e1206c2c7466d716">number_of_cells_</a>;  </div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        <span class="keywordtype">void</span> setMeshLowerBound(Vecd lower_bound, Real grid_spacing, <span class="keywordtype">size_t</span> buffer_size);</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> calcNumberOfCells(Vecd lower_bound, Vecd upper_bound, Real grid_spacing, <span class="keywordtype">size_t</span> buffer_size);</div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#ae76f87848216771b3471ab055df2fd4a">  209</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_mesh.html#ae76f87848216771b3471ab055df2fd4a">NumberOfGridPointsFromNumberOfCells</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells) { <span class="keywordflow">return</span> number_of_cells + <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a>(1); };</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a4bcc73c0057b2808792b303995ef27ee">  215</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_mesh.html#a4bcc73c0057b2808792b303995ef27ee">NumberOfCellsFromNumberOfGridPoints</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_grid_points) { <span class="keywordflow">return</span> number_of_grid_points - <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a>(1); };</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        <span class="keywordtype">void</span> copyMeshProperties(<a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a>* another_mesh);</div><div class="line"><a name="l00224"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a3082045653c5b076acf14ea23c862021">  224</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_mesh.html#a3082045653c5b076acf14ea23c862021">GridPositionFromCellPosition</a>(Vecd&amp; cell_position)</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        {</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;            <span class="keywordflow">return</span> cell_position - Vecd(0.5 * cell_spacing_);</div><div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        };</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a>(Vecd lower_bound,      </div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            Vecd upper_bound,       </div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;            Real grid_spacing,      </div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            <span class="keywordtype">size_t</span> buffer_size = 0 </div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;        );</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;        <a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a>(Vecd mesh_lower_bound, </div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells,  </div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;            Real cell_spacing       </div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        );</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a>() {};</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a3184da419f5fb791fd21ca8e24f82cf4">  243</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_mesh.html#a3184da419f5fb791fd21ca8e24f82cf4">CellSpacing</a>() { <span class="keywordflow">return</span> cell_spacing_; };</div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#aacda40c501e9d0545da816f918ef8f25">  245</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_mesh.html#aacda40c501e9d0545da816f918ef8f25">NumberOfCells</a>() { <span class="keywordflow">return</span> number_of_cells_; };</div><div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh.html#a30aa391148361b419b89756906bd3d2e">  247</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_mesh.html#a30aa391148361b419b89756906bd3d2e">MeshBufferSize</a>() { <span class="keywordflow">return</span> buffer_size_; };</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        <span class="keywordtype">bool</span> isWithinMeshBound(Vecd position);</div><div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> CellIndexesFromPosition(Vecd&amp; position);</div><div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;        Vecd CellPositionFromIndexes(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_indexes);</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> writeMeshToVtuFile(ofstream&amp; output_file) = 0;</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> writeMeshToPltFile(ofstream&amp; output_file) = 0;</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;    };</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data.html">  271</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_level_set_data.html">LevelSetData</a></div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    {</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00276"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data.html#aa7fc37f978314561ee9fbd99d8a85d73">  276</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_level_set_data.html#aa7fc37f978314561ee9fbd99d8a85d73">phi_</a>;</div><div class="line"><a name="l00278"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data.html#ae56a361924fbc8532cacfb499b36579e">  278</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_level_set_data.html#ae56a361924fbc8532cacfb499b36579e">n_</a>;</div><div class="line"><a name="l00280"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data.html#a96b241b95ad4a085ff54857ad354358f">  280</a></span>&#160;        Real <a class="code" href="class_s_p_h_1_1_level_set_data.html#a96b241b95ad4a085ff54857ad354358f">kappa_</a>;</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        <span class="comment">/*mark the cells cut by near interface level sets, P for positive; N for negative; S for 0 levelset */</span></div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;        <span class="keywordtype">bool</span> gamma_P_, gamma_N_, gamma_S_;</div><div class="line"><a name="l00284"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data.html#af3ffc07e0270165bfdd22b79d07ef125">  284</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_level_set_data.html#af3ffc07e0270165bfdd22b79d07ef125">LevelSetData</a>() : phi_(0), n_(0), </div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;            kappa_(0), gamma_P_(false), gamma_N_(false), gamma_S_(false) {};</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_level_set_data.html">LevelSetData</a>() {};</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;    };</div><div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> PackageDataType&gt;</div><div class="line"><a name="l00294"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html">  294</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_mesh.html">BaseMesh</a></div><div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;    {</div><div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00297"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#abe79a160d794e5d2173d1bf95fdae11e">  297</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_base_data_package.html#abe79a160d794e5d2173d1bf95fdae11e">data_lower_bound_</a>; </div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#aab082ab29c2c14ba7b5d0538053336e9">  298</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html#aab082ab29c2c14ba7b5d0538053336e9">pkg_size_</a>;       </div><div class="line"><a name="l00299"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#afc80c1993d8775d5ac606ae7a05a29a7">  299</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html#afc80c1993d8775d5ac606ae7a05a29a7">pkg_addrs_buffer_</a>;   </div><div class="line"><a name="l00300"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#a9f995c3276dde9d2547bfb98ac810241">  300</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html#a9f995c3276dde9d2547bfb98ac810241">is_inner_pkg_</a>;     </div><div class="line"><a name="l00303"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#ae2a5216a0bd9628a076d06cee3b9ff36">  303</a></span>&#160;        MeshDataMatrix&lt;PackageDataType&gt; <a class="code" href="class_s_p_h_1_1_base_data_package.html#ae2a5216a0bd9628a076d06cee3b9ff36">pkg_data_</a>;          </div><div class="line"><a name="l00306"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#a342b7458bcc94ce0a587f66a96be8481">  306</a></span>&#160;        MeshDataMatrix&lt;PackageDataType*&gt; <a class="code" href="class_s_p_h_1_1_base_data_package.html#a342b7458bcc94ce0a587f66a96be8481">pkg_data_addrs_</a>;   </div><div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;</div><div class="line"><a name="l00309"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#abf298fac58d8c8f5aa2ac455b20c9c68">  309</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_base_data_package.html#abf298fac58d8c8f5aa2ac455b20c9c68">BaseDataPackage</a>(<span class="keywordtype">size_t</span> pkg_size, <span class="keywordtype">size_t</span> addrs_buffer)</div><div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;            : <a class="code" href="class_s_p_h_1_1_base_mesh.html">BaseMesh</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a>(pkg_size + 2 * addrs_buffer)), data_lower_bound_(0),</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;            pkg_size_(pkg_size), pkg_addrs_buffer_(addrs_buffer), is_inner_pkg_(false) {</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            allocateMeshDataMatrix();</div><div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        };</div><div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a>() {</div><div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;            deleteMeshDataMatrix();</div><div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;        };</div><div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div><div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> allocateMeshDataMatrix() <span class="keyword">override</span>;</div><div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> deleteMeshDataMatrix() <span class="keyword">override</span>;</div><div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#a27fe7ea95bd644a8c30f44de30011633">  323</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html#a27fe7ea95bd644a8c30f44de30011633">PackageSize</a>() { <span class="keywordflow">return</span> pkg_size_; };</div><div class="line"><a name="l00325"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#a440043da036f792871370c82ceeb37be">  325</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html#a440043da036f792871370c82ceeb37be">PackageAddressBuffer</a>() { <span class="keywordflow">return</span> pkg_addrs_buffer_; };</div><div class="line"><a name="l00327"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_data_package.html#a5cc250a5bc80fdd235599cae4a3ac77d">  327</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html#a5cc250a5bc80fdd235599cae4a3ac77d">initializePackageGeometry</a>(Vecd&amp; pkg_lower_bound, Real data_spacing) {</div><div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;            mesh_lower_bound_ = pkg_lower_bound - Vecd(data_spacing * 0.5);;</div><div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            grid_spacing_ = data_spacing;</div><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            data_lower_bound_ = pkg_lower_bound + Vecd(data_spacing * 0.5);</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        };</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeDataPackage(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body) = 0;</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span> DataType, DataType PackageDataType:: * MemPtr&gt;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        DataType probeDataPackage(MeshDataMatrix&lt;PackageDataType*&gt; pkg_data_addrs, Vecd&amp; position);</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        <span class="keyword">template</span>&lt;Real PackageDataType:: * MemPtrSrc, Vecd PackageDataType:: * MemPtrTrg&gt;</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        <span class="keywordtype">void</span> computeGradient(MeshDataMatrix&lt;PackageDataType*&gt; pkg_data_addrs, Real dt = 0.0);</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        <span class="keyword">template</span>&lt;Real PackageDataType:: * MemPtrSrc, Vecd PackageDataType:: * MemPtrTrg&gt;</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;        <span class="keywordtype">void</span> computeNormalizedGradient(MeshDataMatrix&lt;PackageDataType*&gt; pkg_data_addrs, Real dt = 0.0);</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    };</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data_package.html">  364</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_level_set_data_package.html">LevelSetDataPackage</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a>&lt;LevelSetData&gt;</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    {</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;        Real getHeaviside(Real phi);</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        Vecd getAperture(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> grid_index);</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00380"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data_package.html#a17fa32e1900c2c859f5c06e580a524f6">  380</a></span>&#160;        <span class="keywordtype">bool</span> <a class="code" href="class_s_p_h_1_1_level_set_data_package.html#a17fa32e1900c2c859f5c06e580a524f6">is_core_pkg_</a>;  </div><div class="line"><a name="l00382"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set_data_package.html#a9d242cd9cab7fbe38e41ec777c96a2e6">  382</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_level_set_data_package.html#a9d242cd9cab7fbe38e41ec777c96a2e6">LevelSetDataPackage</a>() : <a class="code" href="class_s_p_h_1_1_base_data_package.html">BaseDataPackage</a>&lt;<a class="code" href="class_s_p_h_1_1_level_set_data.html">LevelSetData</a>&gt;(4, 1), is_core_pkg_(false) {}</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_level_set_data_package.html">LevelSetDataPackage</a>() {};</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeDataPackage(SPHBody* sph_body) <span class="keyword">override</span>;</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;        <span class="keywordtype">void</span> initializeWithUniformData(<a class="code" href="class_real.html">Real</a> level_set, <a class="code" href="class_vecd.html">Vecd</a> normal_direction);</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;        <a class="code" href="class_real.html">Real</a> getCurvature(Vecu grid_index);</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        <a class="code" href="class_vecd.html">Vecd</a> getNormalDirection(Vecu grid_index);</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        <a class="code" href="class_real.html">Real</a> getSurfaceInCell(Vecu cell_index);</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;        <a class="code" href="class_real.html">Real</a> getVolumeInCell(Vecu cell_index);</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;        <span class="keywordtype">bool</span> isNearSurfaceGrid(Vecu grid_index);</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        <span class="keywordtype">bool</span> isNarrowBandGrid(Vecu grid_index);</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;        <span class="keywordtype">bool</span> stepReinitialization(Vecu grid_index);</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;        <span class="keywordtype">bool</span> redistanceToLevelset(Vecu grid_index, <a class="code" href="class_real.html">Real</a> phi);</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    };</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;</div><div class="line"><a name="l00447"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh_with_data_packages.html">  447</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_base_mesh_with_data_packages.html">BaseMeshWithDataPackages</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a></div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    {</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeDataInACell(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index, Real dt) = 0;</div><div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeAddressesInACell(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index, Real dt) = 0;</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> tagACellIsInnerPackage(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index, Real dt) = 0;</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00470"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh_with_data_packages.html#ac86d161b646b5938189e2d337d4b6bce">  470</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_base_mesh_with_data_packages.html#ac86d161b646b5938189e2d337d4b6bce">BaseMeshWithDataPackages</a>(Vecd lower_bound,      </div><div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;            Vecd upper_bound,       </div><div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;            Real grid_spacing,  </div><div class="line"><a name="l00473"></a><span class="lineno">  473</span>&#160;            <span class="keywordtype">size_t</span> buffer_size = 0  </div><div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        )</div><div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;            : <a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a>(lower_bound, upper_bound, grid_spacing, buffer_size) {};</div><div class="line"><a name="l00477"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_mesh_with_data_packages.html#a6d70bf1a3a8ca197fc448efc44b90d63">  477</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_base_mesh_with_data_packages.html#a6d70bf1a3a8ca197fc448efc44b90d63">BaseMeshWithDataPackages</a>(Vecd mesh_lower_bound, </div><div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;            <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells,   </div><div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;            Real cell_spacing       </div><div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;        )</div><div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;            : <a class="code" href="class_s_p_h_1_1_mesh.html">Mesh</a>(mesh_lower_bound, number_of_cells, cell_spacing) {};</div><div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_base_mesh_with_data_packages.html">BaseMeshWithDataPackages</a>() {};</div><div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeDataPackages() = 0;</div><div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    };</div><div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;</div><div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_level_set.html">  493</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_mesh_with_data_packages.html">BaseMeshWithDataPackages</a></div><div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;    {</div><div class="line"><a name="l00495"></a><span class="lineno">  495</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body_;</div><div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00499"></a><span class="lineno">  499</span>&#160;        <a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a>(Vecd lower_bound,      </div><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;            Vecd upper_bound,       </div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;            Real grid_spacing,  </div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;            <span class="keywordtype">size_t</span> buffer_size = 0  </div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;        );</div><div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;        <a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a>(Vecd mesh_lower_bound, </div><div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;            <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells,  </div><div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;            Real cell_spacing       </div><div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        );</div><div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_base_level_set.html">BaseLevelSet</a>() {};</div><div class="line"><a name="l00514"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_base_level_set.html#a7a3966c51857a8f50a89779483e16009">  514</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_base_level_set.html#a7a3966c51857a8f50a89779483e16009">setSPHBody</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body) { sph_body_ = sph_body; };</div><div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        <span class="keyword">virtual</span> Real probeLevelSet(Vecd position) = 0;</div><div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        <span class="keyword">virtual</span> Vecd probeNormalDirection(Vecd position) = 0;</div><div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateNormalDirection() = 0;</div><div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;</div><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;    };</div><div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;</div><div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> BaseMeshType = BaseLevelSet, <span class="keyword">class</span> DataPackageType = LevelSetDataPackage&gt;</div><div class="line"><a name="l00535"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html">  535</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html">MeshWithDataPackages</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a></div><div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;    {</div><div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00538"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#aadba35ad3ccab5a3fec7be11c781e0ec">  538</a></span>&#160;        <a class="code" href="class_mypool.html">Mypool&lt;DataPackageType&gt;</a> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#aadba35ad3ccab5a3fec7be11c781e0ec">data_pkg_pool_</a>;              </div><div class="line"><a name="l00539"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a60367a8dbbe1def71a561f0ef1c8dca0">  539</a></span>&#160;        MeshDataMatrix&lt;DataPackageType*&gt; <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a60367a8dbbe1def71a561f0ef1c8dca0">data_pkg_addrs_</a>;    </div><div class="line"><a name="l00540"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa87f20b6d7a431a3afcc3cd6e2cf8a80">  540</a></span>&#160;        <a class="code" href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">ConcurrentVector&lt;DataPackageType*&gt;</a> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa87f20b6d7a431a3afcc3cd6e2cf8a80">inner_data_pkgs_</a>; </div><div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> allocateMeshDataMatrix() <span class="keyword">override</span>; </div><div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> deleteMeshDataMatrix() <span class="keyword">override</span>;   </div><div class="line"><a name="l00546"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a5ccc3838a7aaf62f75ee5e191df482f6">  546</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a5ccc3838a7aaf62f75ee5e191df482f6">MeshWithDataPackages</a>(Vecd lower_bound,      </div><div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;            Vecd upper_bound,       </div><div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;            Real grid_spacing,  </div><div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;            <span class="keywordtype">size_t</span> buffer_size = 0 </div><div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;        )</div><div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;            : <a class="code" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>(lower_bound, upper_bound, grid_spacing, buffer_size)</div><div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;        {</div><div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;            pkg_size_ = (<a class="code" href="classint.html">int</a>)DataPackageType().PackageSize();</div><div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;            pkg_addrs_buffer_ = (<a class="code" href="classint.html">int</a>)DataPackageType().PackageAddressBuffer();</div><div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;            pkg_addrs_size_ = pkg_size_ + 2 * pkg_addrs_buffer_;</div><div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;            data_spacing_ = grid_spacing / (Real)pkg_size_;</div><div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;            total_number_of_data_points_ = this-&gt;number_of_cells_ * pkg_size_;</div><div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;            allocateMeshDataMatrix();</div><div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;        }</div><div class="line"><a name="l00561"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a10979ecebef177b628bed9bd78e309d7">  561</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a10979ecebef177b628bed9bd78e309d7">MeshWithDataPackages</a>(Vecd mesh_lower_bound, </div><div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;            <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells,   </div><div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;            Real cell_spacing       </div><div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;        )</div><div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;            : <a class="code" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>(mesh_lower_bound, number_of_cells, cell_spacing)</div><div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        {</div><div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;            pkg_size_ = (<a class="code" href="classint.html">int</a>)DataPackageType().PackageSize();</div><div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;            pkg_addrs_buffer_ = (<a class="code" href="classint.html">int</a>)DataPackageType().PackageAddressBuffer();</div><div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;            pkg_addrs_size_ = pkg_size_ + 2 * pkg_addrs_buffer_;</div><div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;            data_spacing_ = this-&gt;grid_spacing_ / (Real)pkg_size_;</div><div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;            total_number_of_data_points_ = this-&gt;number_of_cells_ * pkg_size_;</div><div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;            allocateMeshDataMatrix();</div><div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;        };</div><div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html">MeshWithDataPackages</a>() { deleteMeshDataMatrix(); };</div><div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span> DataType, <span class="keyword">class</span> PackageDataType, DataType PackageDataType:: * MemPtr&gt;</div><div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;        DataType probeMesh(<a class="code" href="class_vecd.html">Vecd</a>&amp; position);</div><div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span> PackageDataType, Real PackageDataType:: * MemPtrSrc, Vecd PackageDataType:: * MemPtrTrg&gt;</div><div class="line"><a name="l00588"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#af6c39083503e4c2403e1a261209e0ccc">  588</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#af6c39083503e4c2403e1a261209e0ccc">computeGradient</a>(DataPackageType* inner_data_pkg, Real dt = 0.0)</div><div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;        {</div><div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;            inner_data_pkg-&gt;DataPackageType::template computeGradient&lt;MemPtrSrc, MemPtrTrg&gt;(inner_data_pkg-&gt;pkg_data_addrs_, dt);</div><div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        };</div><div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span> PackageDataType, Real PackageDataType:: * MemPtrSrc, Vecd PackageDataType:: * MemPtrTrg&gt;</div><div class="line"><a name="l00598"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a9813f9cf4d8a729a2131501bd625fc76">  598</a></span>&#160;        <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a9813f9cf4d8a729a2131501bd625fc76">computeNormalizedGradient</a>(DataPackageType* inner_data_pkg, Real dt = 0.0)</div><div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;        {</div><div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;            inner_data_pkg-&gt;DataPackageType::template computeNormalizedGradient&lt;MemPtrSrc, MemPtrTrg&gt;(inner_data_pkg-&gt;pkg_data_addrs_, dt);</div><div class="line"><a name="l00601"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a7547ab2f45b7be609ec58b2b14d2736f">  601</a></span>&#160;        };</div><div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;</div><div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;        Real data_spacing_;</div><div class="line"><a name="l00607"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a265af047a587520b5f34f96f55324007">  607</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a265af047a587520b5f34f96f55324007">pkg_size_</a>;</div><div class="line"><a name="l00609"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#af78347a7adfc754cd602345d6e8c9ecc">  609</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#af78347a7adfc754cd602345d6e8c9ecc">pkg_addrs_buffer_</a>;</div><div class="line"><a name="l00611"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a10eb97e684fb202435b59cce6835d732">  611</a></span>&#160;        <span class="keywordtype">int</span> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a10eb97e684fb202435b59cce6835d732">pkg_addrs_size_</a>;</div><div class="line"><a name="l00613"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a2f6fa59a743b293cfa423b0151338a38">  613</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a2f6fa59a743b293cfa423b0151338a38">total_number_of_data_points_</a>;</div><div class="line"><a name="l00615"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa42ed9e23fbe9af25127ca9b0af47820">  615</a></span>&#160;        StdVec&lt;DataPackageType*&gt; <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#aa42ed9e23fbe9af25127ca9b0af47820">singular_data_pkgs_addrs</a>;</div><div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;</div><div class="line"><a name="l00618"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a856867d209a70e80c5edd0f41713e2da">  618</a></span>&#160;        Vecd <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a856867d209a70e80c5edd0f41713e2da">DataPositionFromGlobalIndex</a>(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> global_data_index)</div><div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;        {</div><div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;            Vecd data_position;</div><div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> n = 0; n &lt; data_position.size(); n++)</div><div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;            {</div><div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;                data_position[n] = this-&gt;mesh_lower_bound_[n] + 0.5 * data_spacing_</div><div class="line"><a name="l00624"></a><span class="lineno">  624</span>&#160;                    + Real(global_data_index[n]) * data_spacing_;</div><div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;            }</div><div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;            <span class="keywordflow">return</span> data_position;</div><div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;        };</div><div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span> PackageDataType&gt;</div><div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;        PackageDataType DataValueFromGlobalIndex(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> global_data_index);</div><div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span> PackageDataType&gt;</div><div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;        <span class="keywordtype">void</span> initializePackageAddressesInACell(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index);</div><div class="line"><a name="l00639"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_mesh_with_data_packages.html#a8d5f98deeb88cf8352087587ded0b5da">  639</a></span>&#160;        pair&lt;int, int&gt; <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html#a8d5f98deeb88cf8352087587ded0b5da">CellShiftAndDataIndex</a>(<span class="keywordtype">size_t</span> data_addrs_index_component)</div><div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;        {</div><div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;            pair&lt;int, int&gt; shift_and_index;</div><div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;            <span class="keywordtype">int</span> signed_date_index = (<a class="code" href="classint.html">int</a>)data_addrs_index_component - pkg_addrs_buffer_;</div><div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;            shift_and_index.first = (signed_date_index + pkg_size_) / pkg_size_ - 1;</div><div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;            shift_and_index.second = signed_date_index - shift_and_index.first * pkg_size_;</div><div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;            <span class="keywordflow">return</span> shift_and_index;</div><div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;        }</div><div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    };</div><div class="line"><a name="l00648"></a><span class="lineno">  648</span>&#160;</div><div class="line"><a name="l00653"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set.html">  653</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_level_set.html">LevelSet</a></div><div class="line"><a name="l00654"></a><span class="lineno">  654</span>&#160;        : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_mesh_with_data_packages.html">MeshWithDataPackages</a>&lt;BaseLevelSet, LevelSetDataPackage&gt;</div><div class="line"><a name="l00655"></a><span class="lineno">  655</span>&#160;    {</div><div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeDataInACell(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index, Real dt) <span class="keyword">override</span>;</div><div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeAddressesInACell(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index, Real dt) <span class="keyword">override</span>;</div><div class="line"><a name="l00674"></a><span class="lineno">  674</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> tagACellIsInnerPackage(<a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> cell_index, Real dt) <span class="keyword">override</span>;</div><div class="line"><a name="l00675"></a><span class="lineno">  675</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00677"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set.html#a7e87db9e868c9944bca57770499b001d">  677</a></span>&#160;        <a class="code" href="class_concurrent_vector_3_01_level_set_data_package_01_5_01_4.html">ConcurrentVector&lt;LevelSetDataPackage*&gt;</a> <a class="code" href="class_s_p_h_1_1_level_set.html#a7e87db9e868c9944bca57770499b001d">core_data_pkgs_</a>;</div><div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;</div><div class="line"><a name="l00680"></a><span class="lineno">  680</span>&#160;        <a class="code" href="class_s_p_h_1_1_level_set.html">LevelSet</a>(Vecd mesh_lower_bound, </div><div class="line"><a name="l00681"></a><span class="lineno">  681</span>&#160;            <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells,  </div><div class="line"><a name="l00682"></a><span class="lineno">  682</span>&#160;            Real cell_spacing);</div><div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;        <a class="code" href="class_s_p_h_1_1_level_set.html">LevelSet</a>(Vecd lower_bound,      </div><div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;            Vecd upper_bound,       </div><div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;            Real grid_spacing,  </div><div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;            <span class="keywordtype">size_t</span> buffer_size = 0  </div><div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;        );</div><div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;        <a class="code" href="class_s_p_h_1_1_level_set.html">LevelSet</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body,     </div><div class="line"><a name="l00691"></a><span class="lineno">  691</span>&#160;            Vecd lower_bound,      </div><div class="line"><a name="l00692"></a><span class="lineno">  692</span>&#160;            Vecd upper_bound,       </div><div class="line"><a name="l00693"></a><span class="lineno">  693</span>&#160;            Real grid_spacing,  </div><div class="line"><a name="l00694"></a><span class="lineno">  694</span>&#160;            <span class="keywordtype">size_t</span> buffer_size = 0 </div><div class="line"><a name="l00695"></a><span class="lineno">  695</span>&#160;        );</div><div class="line"><a name="l00696"></a><span class="lineno">  696</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_level_set.html">LevelSet</a>() {};</div><div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;</div><div class="line"><a name="l00701"></a><span class="lineno">  701</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> initializeDataPackages() <span class="keyword">override</span>;</div><div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;        <span class="keyword">virtual</span> Real probeLevelSet(Vecd position) <span class="keyword">override</span>;</div><div class="line"><a name="l00711"></a><span class="lineno">  711</span>&#160;        <span class="keyword">virtual</span> Vecd probeNormalDirection(Vecd position) <span class="keyword">override</span>;</div><div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> updateNormalDirection() <span class="keyword">override</span>;</div><div class="line"><a name="l00720"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_level_set.html#afa294ed577a11ea5c3bb44e84854fcd0">  720</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_s_p_h_1_1_level_set.html#afa294ed577a11ea5c3bb44e84854fcd0">writeMeshToVtuFile</a>(ofstream&amp; output_file)<span class="keyword"> override </span>{};</div><div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> writeMeshToPltFile(ofstream&amp; output_file) <span class="keyword">override</span>;</div><div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;    };</div><div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">class</span> BaseMeshType = BaseLevelSet, <span class="keyword">class</span> MeshLevelType = LevelSet&gt;</div><div class="line"><a name="l00732"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multilevel_mesh.html">  732</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_multilevel_mesh.html">MultilevelMesh</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a></div><div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    {</div><div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00736"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multilevel_mesh.html#a517ea40629723ea3280632c581dd2cda">  736</a></span>&#160;        <span class="keywordtype">size_t</span> <a class="code" href="class_s_p_h_1_1_multilevel_mesh.html#a517ea40629723ea3280632c581dd2cda">total_levels_</a>;</div><div class="line"><a name="l00738"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multilevel_mesh.html#ad3967f97e9d1d0d607ef833dbaf8fa5e">  738</a></span>&#160;        <a class="code" href="class_std_vec_3_01_real_01_4.html">StdVec&lt;Real&gt;</a> <a class="code" href="class_s_p_h_1_1_multilevel_mesh.html#ad3967f97e9d1d0d607ef833dbaf8fa5e">cell_spacing_levels_</a>;</div><div class="line"><a name="l00740"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multilevel_mesh.html#a0e476bce39102a423ce49a78f95cff25">  740</a></span>&#160;        StdVec&lt;Vecu&gt; <a class="code" href="class_s_p_h_1_1_multilevel_mesh.html#a0e476bce39102a423ce49a78f95cff25">number_of_cells_levels_</a>;</div><div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;</div><div class="line"><a name="l00742"></a><span class="lineno">  742</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00744"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multilevel_mesh.html#afa64abed6b88dc6e82de2cdcd62c4a10">  744</a></span>&#160;        StdVec&lt;MeshLevelType*&gt; <a class="code" href="class_s_p_h_1_1_multilevel_mesh.html#afa64abed6b88dc6e82de2cdcd62c4a10">mesh_levels_</a>;</div><div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;</div><div class="line"><a name="l00746"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multilevel_mesh.html#a17dd368e3585ba788fcaf97e2dcb0dc6">  746</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_multilevel_mesh.html#a17dd368e3585ba788fcaf97e2dcb0dc6">MultilevelMesh</a>(Vecd lower_bound, Vecd upper_bound,</div><div class="line"><a name="l00747"></a><span class="lineno">  747</span>&#160;            Real reference_cell_spacing, <span class="keywordtype">size_t</span> total_levels, <span class="keywordtype">size_t</span> buffer_size = 0)</div><div class="line"><a name="l00748"></a><span class="lineno">  748</span>&#160;            : <a class="code" href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a>(lower_bound, upper_bound, reference_cell_spacing, buffer_size),</div><div class="line"><a name="l00749"></a><span class="lineno">  749</span>&#160;            total_levels_(total_levels) {</div><div class="line"><a name="l00750"></a><span class="lineno">  750</span>&#160;</div><div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;            <span class="keywordtype">int</span> middle_level = ((<a class="code" href="classint.html">int</a>)total_levels - 1) / 2;</div><div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;            Real zero_level_cell_spacing = reference_cell_spacing * powern(2.0, middle_level);</div><div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;            cell_spacing_levels_.push_back(zero_level_cell_spacing);</div><div class="line"><a name="l00755"></a><span class="lineno">  755</span>&#160;            MeshLevelType* zero_level_mesh</div><div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;                = <span class="keyword">new</span> MeshLevelType(lower_bound, upper_bound, zero_level_cell_spacing, buffer_size);</div><div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;            mesh_levels_.push_back(zero_level_mesh);</div><div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;            <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> zero_level_number_of_cells = zero_level_mesh-&gt;NumberOfCells();</div><div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;            this-&gt;copyMeshProperties(zero_level_mesh);</div><div class="line"><a name="l00761"></a><span class="lineno">  761</span>&#160;</div><div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> level = 1; level != total_levels; ++level) {</div><div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;                Real cell_spacing = zero_level_cell_spacing * powern(0.5, (<span class="keywordtype">int</span>)level);</div><div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;                cell_spacing_levels_.push_back(cell_spacing);</div><div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;                <a class="code" href="class_s_p_h_1_1_s_vec.html">Vecu</a> number_of_cells = zero_level_number_of_cells * powern(2, (<span class="keywordtype">int</span>)level);</div><div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;                MeshLevelType* mesh_level</div><div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;                    = <span class="keyword">new</span> MeshLevelType(lower_bound, number_of_cells, cell_spacing);</div><div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;                mesh_levels_.push_back(mesh_level);</div><div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;            }</div><div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;        };</div><div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_multilevel_mesh.html">MultilevelMesh</a>() {};</div><div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;    };</div><div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;</div><div class="line"><a name="l00779"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multiresolution_level_set.html">  779</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_s_p_h_1_1_multiresolution_level_set.html">MultiresolutionLevelSet</a> : <span class="keyword">public</span> <a class="code" href="class_s_p_h_1_1_multilevel_mesh.html">MultilevelMesh</a>&lt;BaseLevelSet, LevelSet&gt;</div><div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;    {</div><div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00783"></a><span class="lineno"><a class="line" href="class_s_p_h_1_1_multiresolution_level_set.html#a7ac7c9b3d0f2da063d1bf12d80bc9cab">  783</a></span>&#160;        <a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* <a class="code" href="class_s_p_h_1_1_multiresolution_level_set.html#a7ac7c9b3d0f2da063d1bf12d80bc9cab">sph_body_</a>;</div><div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;        <a class="code" href="class_s_p_h_1_1_multiresolution_level_set.html">MultiresolutionLevelSet</a>(<a class="code" href="class_s_p_h_1_1_s_p_h_body.html">SPHBody</a>* sph_body, Vecd lower_bound, Vecd upper_bound,</div><div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;            Real reference_cell_spacing, <span class="keywordtype">size_t</span> total_levels, <span class="keywordtype">size_t</span> buffer_size = 0);</div><div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;        <span class="keyword">virtual</span> ~<a class="code" href="class_s_p_h_1_1_multiresolution_level_set.html">MultiresolutionLevelSet</a>() {};</div><div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;    };</div><div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;</div><div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;}</div><div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;</div><div class="ttc" id="class_s_p_h_1_1_level_set_data_html_aa7fc37f978314561ee9fbd99d8a85d73"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data.html#aa7fc37f978314561ee9fbd99d8a85d73">SPH::LevelSetData::phi_</a></div><div class="ttdeci">Real phi_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:276</div></div>
<div class="ttc" id="namespacestd_1_1placeholders_html"><div class="ttname"><a href="namespacestd_1_1placeholders.html">placeholders</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_ae76f87848216771b3471ab055df2fd4a"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#ae76f87848216771b3471ab055df2fd4a">SPH::Mesh::NumberOfGridPointsFromNumberOfCells</a></div><div class="ttdeci">Vecu NumberOfGridPointsFromNumberOfCells(Vecu number_of_cells)</div><div class="ttdoc">This function compute number of total grid points form total cells. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:209</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_with_data_packages_html_ac86d161b646b5938189e2d337d4b6bce"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh_with_data_packages.html#ac86d161b646b5938189e2d337d4b6bce">SPH::BaseMeshWithDataPackages::BaseMeshWithDataPackages</a></div><div class="ttdeci">BaseMeshWithDataPackages(Vecd lower_bound, Vecd upper_bound, Real grid_spacing, size_t buffer_size=0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:470</div></div>
<div class="ttc" id="namespace_s_p_h_html_aae6b33f2feaab1a5a06a45ec57f0ee8a"><div class="ttname"><a href="namespace_s_p_h.html#aae6b33f2feaab1a5a06a45ec57f0ee8a">SPH::MeshIterator_parallel</a></div><div class="ttdeci">void MeshIterator_parallel(Vecu index_begin, Vecu index_end, MeshFunctor &amp;mesh_functor, Real dt)</div><div class="ttdef"><b>Definition:</b> base_mesh_supplementary.cpp:28</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_a24a968bc706af8c7fbdc427ca7ed156b"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#a24a968bc706af8c7fbdc427ca7ed156b">SPH::BaseMesh::BaseMesh</a></div><div class="ttdeci">BaseMesh()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:124</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a8996ae22420ea203e1206c2c7466d716"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a8996ae22420ea203e1206c2c7466d716">SPH::Mesh::number_of_cells_</a></div><div class="ttdeci">Vecu number_of_cells_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:189</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_vec_html"><div class="ttname"><a href="class_s_p_h_1_1_s_vec.html">SPH::SVec</a></div><div class="ttdef"><b>Definition:</b> small_vectors.h:44</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_a075244782af1e6dccff264c569e29dab"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#a075244782af1e6dccff264c569e29dab">SPH::BaseMesh::GridSpacing</a></div><div class="ttdeci">Real GridSpacing()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:136</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a90b8a7819fe4eb22f4717dbf09c3b325"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a90b8a7819fe4eb22f4717dbf09c3b325">SPH::Mesh::cell_spacing_</a></div><div class="ttdeci">Real cell_spacing_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:188</div></div>
<div class="ttc" id="namespace_s_p_h_html_ac11be758d779fa508c860fc76ea76c1d"><div class="ttname"><a href="namespace_s_p_h.html#ac11be758d779fa508c860fc76ea76c1d">SPH::MeshFunctor</a></div><div class="ttdeci">std::function&lt; void(Vecu, Real)&gt; MeshFunctor</div><div class="ttdef"><b>Definition:</b> base_mesh.h:53</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_a342b7458bcc94ce0a587f66a96be8481"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#a342b7458bcc94ce0a587f66a96be8481">SPH::BaseDataPackage::pkg_data_addrs_</a></div><div class="ttdeci">MeshDataMatrix&lt; PackageDataType * &gt; pkg_data_addrs_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:306</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_abe79a160d794e5d2173d1bf95fdae11e"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#abe79a160d794e5d2173d1bf95fdae11e">SPH::BaseDataPackage::data_lower_bound_</a></div><div class="ttdeci">Vecd data_lower_bound_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:297</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a5ccc3838a7aaf62f75ee5e191df482f6"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a5ccc3838a7aaf62f75ee5e191df482f6">SPH::MeshWithDataPackages::MeshWithDataPackages</a></div><div class="ttdeci">MeshWithDataPackages(Vecd lower_bound, Vecd upper_bound, Real grid_spacing, size_t buffer_size=0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:546</div></div>
<div class="ttc" id="class_s_p_h_1_1_multilevel_mesh_html_ad3967f97e9d1d0d607ef833dbaf8fa5e"><div class="ttname"><a href="class_s_p_h_1_1_multilevel_mesh.html#ad3967f97e9d1d0d607ef833dbaf8fa5e">SPH::MultilevelMesh::cell_spacing_levels_</a></div><div class="ttdeci">StdVec&lt; Real &gt; cell_spacing_levels_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:738</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_a9f995c3276dde9d2547bfb98ac810241"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#a9f995c3276dde9d2547bfb98ac810241">SPH::BaseDataPackage::is_inner_pkg_</a></div><div class="ttdeci">bool is_inner_pkg_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:300</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html">SPH::Mesh</a></div><div class="ttdoc">Abstract base class for defining basic mesh properties. The mesh is proposed for several functions...</div><div class="ttdef"><b>Definition:</b> base_mesh.h:183</div></div>
<div class="ttc" id="namespace_s_p_h_html_a47bfdfc81e94165cf7377baf3314020b"><div class="ttname"><a href="namespace_s_p_h.html#a47bfdfc81e94165cf7377baf3314020b">SPH::PackageIterator_parallel</a></div><div class="ttdeci">void PackageIterator_parallel(ConcurrentVector&lt; DataPackageType *&gt; inner_data_pkgs, PackageFunctor&lt; void, DataPackageType &gt; &amp;pkg_functor, Real dt=0.0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:72</div></div>
<div class="ttc" id="class_s_p_h_1_1_multilevel_mesh_html_afa64abed6b88dc6e82de2cdcd62c4a10"><div class="ttname"><a href="class_s_p_h_1_1_multilevel_mesh.html#afa64abed6b88dc6e82de2cdcd62c4a10">SPH::MultilevelMesh::mesh_levels_</a></div><div class="ttdeci">StdVec&lt; MeshLevelType * &gt; mesh_levels_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:744</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_aa87f20b6d7a431a3afcc3cd6e2cf8a80"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#aa87f20b6d7a431a3afcc3cd6e2cf8a80">SPH::MeshWithDataPackages::inner_data_pkgs_</a></div><div class="ttdeci">ConcurrentVector&lt; DataPackageType * &gt; inner_data_pkgs_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:540</div></div>
<div class="ttc" id="class_s_p_h_1_1_multiresolution_level_set_html_a7ac7c9b3d0f2da063d1bf12d80bc9cab"><div class="ttname"><a href="class_s_p_h_1_1_multiresolution_level_set.html#a7ac7c9b3d0f2da063d1bf12d80bc9cab">SPH::MultiresolutionLevelSet::sph_body_</a></div><div class="ttdeci">SPHBody * sph_body_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:783</div></div>
<div class="ttc" id="namespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_html_af3ffc07e0270165bfdd22b79d07ef125"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data.html#af3ffc07e0270165bfdd22b79d07ef125">SPH::LevelSetData::LevelSetData</a></div><div class="ttdeci">LevelSetData()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:284</div></div>
<div class="ttc" id="class_s_p_h_1_1_multilevel_mesh_html_a517ea40629723ea3280632c581dd2cda"><div class="ttname"><a href="class_s_p_h_1_1_multilevel_mesh.html#a517ea40629723ea3280632c581dd2cda">SPH::MultilevelMesh::total_levels_</a></div><div class="ttdeci">size_t total_levels_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:736</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_a5e1e27e30924c3390d8cdd20dba606fd"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#a5e1e27e30924c3390d8cdd20dba606fd">SPH::BaseMesh::number_of_grid_points_</a></div><div class="ttdeci">Vecu number_of_grid_points_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:120</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_package_html_a9d242cd9cab7fbe38e41ec777c96a2e6"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data_package.html#a9d242cd9cab7fbe38e41ec777c96a2e6">SPH::LevelSetDataPackage::LevelSetDataPackage</a></div><div class="ttdeci">LevelSetDataPackage()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:382</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_package_html"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data_package.html">SPH::LevelSetDataPackage</a></div><div class="ttdoc">Fixed memory level set data packed in a package. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:364</div></div>
<div class="ttc" id="class_concurrent_vector_3_01_level_set_data_package_01_5_01_4_html"><div class="ttname"><a href="class_concurrent_vector_3_01_level_set_data_package_01_5_01_4.html">ConcurrentVector&lt; LevelSetDataPackage * &gt;</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_af78347a7adfc754cd602345d6e8c9ecc"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#af78347a7adfc754cd602345d6e8c9ecc">SPH::MeshWithDataPackages::pkg_addrs_buffer_</a></div><div class="ttdeci">int pkg_addrs_buffer_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:609</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a0220a9cfe258f8fb9ccdee36ba27193a"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a0220a9cfe258f8fb9ccdee36ba27193a">SPH::Mesh::buffer_size_</a></div><div class="ttdeci">size_t buffer_size_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:187</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html">SPH::BaseMesh</a></div><div class="ttdoc">Abstract base class for all meshes. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:115</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html">SPH::BaseDataPackage</a></div><div class="ttdoc">Abstract base class for a data package which is given by a small mesh patch. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:294</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_a27fe7ea95bd644a8c30f44de30011633"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#a27fe7ea95bd644a8c30f44de30011633">SPH::BaseDataPackage::PackageSize</a></div><div class="ttdeci">size_t PackageSize()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:323</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_ae2a5216a0bd9628a076d06cee3b9ff36"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#ae2a5216a0bd9628a076d06cee3b9ff36">SPH::BaseDataPackage::pkg_data_</a></div><div class="ttdeci">MeshDataMatrix&lt; PackageDataType &gt; pkg_data_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:303</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a9813f9cf4d8a729a2131501bd625fc76"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a9813f9cf4d8a729a2131501bd625fc76">SPH::MeshWithDataPackages::computeNormalizedGradient</a></div><div class="ttdeci">void computeNormalizedGradient(DataPackageType *inner_data_pkg, Real dt=0.0)</div><div class="ttdoc">This function compute normalized gradient using central difference scheme. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:598</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_a00a3bee5412ec539c8cd068d504cd45b"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#a00a3bee5412ec539c8cd068d504cd45b">SPH::BaseMesh::MeshLowerBound</a></div><div class="ttdeci">Vecd MeshLowerBound()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:134</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_aa42ed9e23fbe9af25127ca9b0af47820"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#aa42ed9e23fbe9af25127ca9b0af47820">SPH::MeshWithDataPackages::singular_data_pkgs_addrs</a></div><div class="ttdeci">StdVec&lt; DataPackageType * &gt; singular_data_pkgs_addrs</div><div class="ttdef"><b>Definition:</b> base_mesh.h:615</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a3184da419f5fb791fd21ca8e24f82cf4"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a3184da419f5fb791fd21ca8e24f82cf4">SPH::Mesh::CellSpacing</a></div><div class="ttdeci">Real CellSpacing()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:243</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_a06e00f3689429e2b174e3da6a7021900"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#a06e00f3689429e2b174e3da6a7021900">SPH::BaseMesh::BaseMesh</a></div><div class="ttdeci">BaseMesh(Vecu number_of_grid_points)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:127</div></div>
<div class="ttc" id="class_real_html"><div class="ttname"><a href="class_real.html">Real</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_html_a96b241b95ad4a085ff54857ad354358f"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data.html#a96b241b95ad4a085ff54857ad354358f">SPH::LevelSetData::kappa_</a></div><div class="ttdeci">Real kappa_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:280</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_aadba35ad3ccab5a3fec7be11c781e0ec"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#aadba35ad3ccab5a3fec7be11c781e0ec">SPH::MeshWithDataPackages::data_pkg_pool_</a></div><div class="ttdeci">Mypool&lt; DataPackageType &gt; data_pkg_pool_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:538</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a8d5f98deeb88cf8352087587ded0b5da"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a8d5f98deeb88cf8352087587ded0b5da">SPH::MeshWithDataPackages::CellShiftAndDataIndex</a></div><div class="ttdeci">pair&lt; int, int &gt; CellShiftAndDataIndex(size_t data_addrs_index_component)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:639</div></div>
<div class="ttc" id="namespace_s_p_h_html_a10c87e35a347ecf49ccf630565aab1e2"><div class="ttname"><a href="namespace_s_p_h.html#a10c87e35a347ecf49ccf630565aab1e2">SPH::ReducePackageIterator_parallel</a></div><div class="ttdeci">ReturnType ReducePackageIterator_parallel(ConcurrentVector&lt; DataPackageType *&gt; inner_data_pkgs, ReturnType temp, PackageFunctor&lt; ReturnType, DataPackageType &gt; &amp;reduce_pkg_functor, ReduceOperation &amp;reduce_operation, Real dt=0.0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:95</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_afc80c1993d8775d5ac606ae7a05a29a7"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#afc80c1993d8775d5ac606ae7a05a29a7">SPH::BaseDataPackage::pkg_addrs_buffer_</a></div><div class="ttdeci">size_t pkg_addrs_buffer_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:299</div></div>
<div class="ttc" id="sph__data__conainers_8h_html"><div class="ttname"><a href="sph__data__conainers_8h.html">sph_data_conainers.h</a></div><div class="ttdoc">Set up of basic data structure. </div></div>
<div class="ttc" id="class_s_p_h_1_1_base_level_set_html_a7a3966c51857a8f50a89779483e16009"><div class="ttname"><a href="class_s_p_h_1_1_base_level_set.html#a7a3966c51857a8f50a89779483e16009">SPH::BaseLevelSet::setSPHBody</a></div><div class="ttdeci">void setSPHBody(SPHBody *sph_body)</div><div class="ttdoc">This function set the SPH body externally. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:514</div></div>
<div class="ttc" id="namespace_s_p_h_html_ae4ae5c55d688fbb13bd48ef45fb27f05"><div class="ttname"><a href="namespace_s_p_h.html#ae4ae5c55d688fbb13bd48ef45fb27f05">SPH::PackageFunctor</a></div><div class="ttdeci">std::function&lt; ReturnType(DataPackageType *, Real)&gt; PackageFunctor</div><div class="ttdef"><b>Definition:</b> base_mesh.h:56</div></div>
<div class="ttc" id="class_mypool_html"><div class="ttname"><a href="class_mypool.html">Mypool&lt; DataPackageType &gt;</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a3082045653c5b076acf14ea23c862021"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a3082045653c5b076acf14ea23c862021">SPH::Mesh::GridPositionFromCellPosition</a></div><div class="ttdeci">Vecd GridPositionFromCellPosition(Vecd &amp;cell_position)</div><div class="ttdoc">This function shift position between cell and grid positions. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:224</div></div>
<div class="ttc" id="namespace_s_p_h_html_adedcef5c2d6a5ee133747acd23880415"><div class="ttname"><a href="namespace_s_p_h.html#adedcef5c2d6a5ee133747acd23880415">SPH::ConcurrentVector</a></div><div class="ttdeci">LargeVec&lt; DataType &gt; ConcurrentVector</div><div class="ttdef"><b>Definition:</b> sph_data_conainers.h:44</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_level_set_html"><div class="ttname"><a href="class_s_p_h_1_1_base_level_set.html">SPH::BaseLevelSet</a></div><div class="ttdoc">A abstract describes a mesh with level set data packages. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:493</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_abf298fac58d8c8f5aa2ac455b20c9c68"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#abf298fac58d8c8f5aa2ac455b20c9c68">SPH::BaseDataPackage::BaseDataPackage</a></div><div class="ttdeci">BaseDataPackage(size_t pkg_size, size_t addrs_buffer)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:309</div></div>
<div class="ttc" id="class_s_p_h_1_1_multilevel_mesh_html"><div class="ttname"><a href="class_s_p_h_1_1_multilevel_mesh.html">SPH::MultilevelMesh</a></div><div class="ttdoc">Multi level Meshes with multi resolution mesh data. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:732</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_package_html_a17fa32e1900c2c859f5c06e580a524f6"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data_package.html#a17fa32e1900c2c859f5c06e580a524f6">SPH::LevelSetDataPackage::is_core_pkg_</a></div><div class="ttdeci">bool is_core_pkg_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:380</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_html"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data.html">SPH::LevelSetData</a></div><div class="ttdoc">Level set is for describing complex geometrics, It is the distance to the surface of the geometry and...</div><div class="ttdef"><b>Definition:</b> base_mesh.h:271</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a10eb97e684fb202435b59cce6835d732"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a10eb97e684fb202435b59cce6835d732">SPH::MeshWithDataPackages::pkg_addrs_size_</a></div><div class="ttdeci">int pkg_addrs_size_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:611</div></div>
<div class="ttc" id="namespace_s_p_h_html_aa4ff282c8b1c3e623e04440adf39f68a"><div class="ttname"><a href="namespace_s_p_h.html#aa4ff282c8b1c3e623e04440adf39f68a">SPH::PackageIterator</a></div><div class="ttdeci">void PackageIterator(ConcurrentVector&lt; DataPackageType *&gt; inner_data_pkgs, PackageFunctor&lt; void, DataPackageType &gt; &amp;pkg_functor, Real dt=0.0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:63</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a4bcc73c0057b2808792b303995ef27ee"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a4bcc73c0057b2808792b303995ef27ee">SPH::Mesh::NumberOfCellsFromNumberOfGridPoints</a></div><div class="ttdeci">Vecu NumberOfCellsFromNumberOfGridPoints(Vecu number_of_grid_points)</div><div class="ttdoc">This function compute number of total cells form total grid points. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:215</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html">SPH::MeshWithDataPackages</a></div><div class="ttdoc">Abstract class fpr mesh with data packages. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:535</div></div>
<div class="ttc" id="namespace_s_p_h_html_aefc4743c0431714953fbf6b4850d4cae"><div class="ttname"><a href="namespace_s_p_h.html#aefc4743c0431714953fbf6b4850d4cae">SPH::MeshIterator</a></div><div class="ttdeci">void MeshIterator(Vecu index_begin, Vecu index_end, MeshFunctor &amp;mesh_functor, Real dt)</div><div class="ttdef"><b>Definition:</b> base_mesh_supplementary.cpp:20</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_aacda40c501e9d0545da816f918ef8f25"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#aacda40c501e9d0545da816f918ef8f25">SPH::Mesh::NumberOfCells</a></div><div class="ttdeci">Vecu NumberOfCells()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:245</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_html_afa294ed577a11ea5c3bb44e84854fcd0"><div class="ttname"><a href="class_s_p_h_1_1_level_set.html#afa294ed577a11ea5c3bb44e84854fcd0">SPH::LevelSet::writeMeshToVtuFile</a></div><div class="ttdeci">virtual void writeMeshToVtuFile(ofstream &amp;output_file) override</div><div class="ttdoc">This function output mesh data for Paraview. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:720</div></div>
<div class="ttc" id="class_s_p_h_1_1_multiresolution_level_set_html"><div class="ttname"><a href="class_s_p_h_1_1_multiresolution_level_set.html">SPH::MultiresolutionLevelSet</a></div><div class="ttdoc">Multi level Meshes for level set data packages. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:779</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_ac8559448b24066e06263bff0aa5ba75b"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#ac8559448b24066e06263bff0aa5ba75b">SPH::BaseMesh::mesh_lower_bound_</a></div><div class="ttdeci">Vecd mesh_lower_bound_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:118</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a265af047a587520b5f34f96f55324007"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a265af047a587520b5f34f96f55324007">SPH::MeshWithDataPackages::pkg_size_</a></div><div class="ttdeci">int pkg_size_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:607</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_with_data_packages_html_a6d70bf1a3a8ca197fc448efc44b90d63"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh_with_data_packages.html#a6d70bf1a3a8ca197fc448efc44b90d63">SPH::BaseMeshWithDataPackages::BaseMeshWithDataPackages</a></div><div class="ttdeci">BaseMeshWithDataPackages(Vecd mesh_lower_bound, Vecu number_of_cells, Real cell_spacing)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:477</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_html_a30aa391148361b419b89756906bd3d2e"><div class="ttname"><a href="class_s_p_h_1_1_mesh.html#a30aa391148361b419b89756906bd3d2e">SPH::Mesh::MeshBufferSize</a></div><div class="ttdeci">size_t MeshBufferSize()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:247</div></div>
<div class="ttc" id="class_s_p_h_1_1_multilevel_mesh_html_a0e476bce39102a423ce49a78f95cff25"><div class="ttname"><a href="class_s_p_h_1_1_multilevel_mesh.html#a0e476bce39102a423ce49a78f95cff25">SPH::MultilevelMesh::number_of_cells_levels_</a></div><div class="ttdeci">StdVec&lt; Vecu &gt; number_of_cells_levels_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:740</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a10979ecebef177b628bed9bd78e309d7"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a10979ecebef177b628bed9bd78e309d7">SPH::MeshWithDataPackages::MeshWithDataPackages</a></div><div class="ttdeci">MeshWithDataPackages(Vecd mesh_lower_bound, Vecu number_of_cells, Real cell_spacing)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:561</div></div>
<div class="ttc" id="class_vecd_html"><div class="ttname"><a href="class_vecd.html">Vecd</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_af6c2e186b771c3573486cdcbaa362b25"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#af6c2e186b771c3573486cdcbaa362b25">SPH::BaseMesh::grid_spacing_</a></div><div class="ttdeci">Real grid_spacing_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:119</div></div>
<div class="ttc" id="class_std_vec_3_01_real_01_4_html"><div class="ttname"><a href="class_std_vec_3_01_real_01_4.html">StdVec&lt; Real &gt;</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_a440043da036f792871370c82ceeb37be"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#a440043da036f792871370c82ceeb37be">SPH::BaseDataPackage::PackageAddressBuffer</a></div><div class="ttdeci">size_t PackageAddressBuffer()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:325</div></div>
<div class="ttc" id="class_s_p_h_1_1_s_p_h_body_html"><div class="ttname"><a href="class_s_p_h_1_1_s_p_h_body.html">SPH::SPHBody</a></div><div class="ttdoc">SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...</div><div class="ttdef"><b>Definition:</b> base_body.h:73</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a60367a8dbbe1def71a561f0ef1c8dca0"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a60367a8dbbe1def71a561f0ef1c8dca0">SPH::MeshWithDataPackages::data_pkg_addrs_</a></div><div class="ttdeci">MeshDataMatrix&lt; DataPackageType * &gt; data_pkg_addrs_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:539</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_html_ad6f44b0d0886d0fd8cbbbded978fca8c"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh.html#ad6f44b0d0886d0fd8cbbbded978fca8c">SPH::BaseMesh::NumberOfGridPoints</a></div><div class="ttdeci">Vecu NumberOfGridPoints()</div><div class="ttdef"><b>Definition:</b> base_mesh.h:138</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_a5cc250a5bc80fdd235599cae4a3ac77d"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#a5cc250a5bc80fdd235599cae4a3ac77d">SPH::BaseDataPackage::initializePackageGeometry</a></div><div class="ttdeci">void initializePackageGeometry(Vecd &amp;pkg_lower_bound, Real data_spacing)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:327</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a856867d209a70e80c5edd0f41713e2da"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a856867d209a70e80c5edd0f41713e2da">SPH::MeshWithDataPackages::DataPositionFromGlobalIndex</a></div><div class="ttdeci">Vecd DataPositionFromGlobalIndex(Vecu global_data_index)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:618</div></div>
<div class="ttc" id="classint_html"><div class="ttname"><a href="classint.html">int</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_html_a7e87db9e868c9944bca57770499b001d"><div class="ttname"><a href="class_s_p_h_1_1_level_set.html#a7e87db9e868c9944bca57770499b001d">SPH::LevelSet::core_data_pkgs_</a></div><div class="ttdeci">ConcurrentVector&lt; LevelSetDataPackage * &gt; core_data_pkgs_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:677</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_a2f6fa59a743b293cfa423b0151338a38"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#a2f6fa59a743b293cfa423b0151338a38">SPH::MeshWithDataPackages::total_number_of_data_points_</a></div><div class="ttdeci">Vecu total_number_of_data_points_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:613</div></div>
<div class="ttc" id="namespace_s_p_h_html_af6044dbd32a657819874af06950bf725"><div class="ttname"><a href="namespace_s_p_h.html#af6044dbd32a657819874af06950bf725">SPH::ReducePackageIterator</a></div><div class="ttdeci">ReturnType ReducePackageIterator(ConcurrentVector&lt; DataPackageType *&gt; inner_data_pkgs, ReturnType temp, PackageFunctor&lt; ReturnType, DataPackageType &gt; &amp;reduce_pkg_functor, ReduceOperation &amp;reduce_operation, Real dt=0.0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:84</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_html"><div class="ttname"><a href="class_s_p_h_1_1_level_set.html">SPH::LevelSet</a></div><div class="ttdoc">Mesh with level set data as packages. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:653</div></div>
<div class="ttc" id="class_s_p_h_1_1_multilevel_mesh_html_a17dd368e3585ba788fcaf97e2dcb0dc6"><div class="ttname"><a href="class_s_p_h_1_1_multilevel_mesh.html#a17dd368e3585ba788fcaf97e2dcb0dc6">SPH::MultilevelMesh::MultilevelMesh</a></div><div class="ttdeci">MultilevelMesh(Vecd lower_bound, Vecd upper_bound, Real reference_cell_spacing, size_t total_levels, size_t buffer_size=0)</div><div class="ttdef"><b>Definition:</b> base_mesh.h:746</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_with_data_packages_html"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh_with_data_packages.html">SPH::BaseMeshWithDataPackages</a></div><div class="ttdoc">Abstract class for a mesh with data packages. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:447</div></div>
<div class="ttc" id="namespace_s_p_h_html"><div class="ttname"><a href="namespace_s_p_h.html">SPH</a></div><div class="ttdef"><b>Definition:</b> base_body_supplementary.cpp:11</div></div>
<div class="ttc" id="class_s_p_h_1_1_mesh_with_data_packages_html_af6c39083503e4c2403e1a261209e0ccc"><div class="ttname"><a href="class_s_p_h_1_1_mesh_with_data_packages.html#af6c39083503e4c2403e1a261209e0ccc">SPH::MeshWithDataPackages::computeGradient</a></div><div class="ttdeci">void computeGradient(DataPackageType *inner_data_pkg, Real dt=0.0)</div><div class="ttdoc">This function compute gradient using central difference scheme. </div><div class="ttdef"><b>Definition:</b> base_mesh.h:588</div></div>
<div class="ttc" id="class_s_p_h_1_1_level_set_data_html_ae56a361924fbc8532cacfb499b36579e"><div class="ttname"><a href="class_s_p_h_1_1_level_set_data.html#ae56a361924fbc8532cacfb499b36579e">SPH::LevelSetData::n_</a></div><div class="ttdeci">Vecd n_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:278</div></div>
<div class="ttc" id="class_s_p_h_1_1_base_mesh_type_html"><div class="ttname"><a href="class_s_p_h_1_1_base_mesh_type.html">BaseMeshType</a></div></div>
<div class="ttc" id="class_s_p_h_1_1_base_data_package_html_aab082ab29c2c14ba7b5d0538053336e9"><div class="ttname"><a href="class_s_p_h_1_1_base_data_package.html#aab082ab29c2c14ba7b5d0538053336e9">SPH::BaseDataPackage::pkg_size_</a></div><div class="ttdeci">size_t pkg_size_</div><div class="ttdef"><b>Definition:</b> base_mesh.h:298</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
